package com.kalua.list.domainmodel;

import org.apache.commons.lang.StringUtils;



public class TextIdentifier extends BaseIdentifier {

	private static final long serialVersionUID = 3634697688613266498L;

	private String value;

	private TextIdentifier() { }
	
	public TextIdentifier(String code) { 
		this();
		setValue(code!=null ? code : ""); 
	}
	
	public String getValue() { return this.value; }
	private void setValue(String code) { this.value = code; }
	
	public boolean isEmpty() {return StringUtils.isEmpty(this.value);}
		
	@Override
	protected Object[] getConstituents() { return new Object[]{getValue()}; }
}